thermal:imx_thermal: enter busywait cooling loop when over max CPU temp
authorTim Harvey <[email protected]>
Tue, 9 Jun 2015 13:40:22 +0000 (06:40 -0700)
committerStefano Babic <[email protected]>
Fri, 10 Jul 2015 07:23:32 +0000 (09:23 +0200)
commit3b7ad216e26567342162722fca7b2e142e694d0f
treef25bec9f2161ea6ab88af09835b5f399411bc909
parent1254ff97abb7606ccd0d7bdcd9f22581c50fe535
thermal:imx_thermal: enter busywait cooling loop when over max CPU temp

Remove the check for temperature being within the min/max range and enter the
busywait cooling loop whenever the CPU temperature is over the critical temp.
This fixes the issue where if a board was booted at a temp greater than
the CPU temperature max, it would skip the loop and never indicate or try
to address the overtemp issue.

Cc: Ye Li <[email protected]>
Cc: Jason Liu <[email protected]>
Signed-off-by: Tim Harvey <[email protected]>
drivers/thermal/imx_thermal.c